<script>
	export default {
		onLaunch: function() {
			//设置全局环境变量对象
			if(process.env.NODE_ENV === 'development'){
				this.$ENV.prodEnv = false;
			    console.debug('开发环境',this.$ENV.prodEnv)
			}else{
				this.$ENV.prodEnv = true;
			    console.debug('生产环境',this.$ENV.prodEnv)
			}
			this.getDeviceInfo();
		},
		onShow: function() {
			//console.log('App Show')
		},
		onHide: function() {
			//console.log('App Hide')
		},
		methods:{
			getDeviceInfo(){
				let systemInfo = uni.getSystemInfoSync();
				this.mobileDeviceInfo.platform = systemInfo.system;
				this.mobileDeviceInfo.uuid= "wxminprogram";
				this.mobileDeviceInfo.model=systemInfo.model;
				//console.log(this.mobileDeviceInfo);
			}
		}
	}
</script>

<style lang="scss">
  /*每个页面公共css */
  @import "./static/colorui/main.css";
  @import "./static/colorui/icon.css";
  @import "./static/common.scss";
</style>
